package com.createidea.cms.struts.action;

import com.createidea.cms.service.contact.ContactService;
import com.createidea.cms.to.ContactTo;

public class ContactAction extends BaseAction {
	private ContactService contactService;
	private ContactTo contact;
	private String contactId;
    
	
	public String getContactInfo(){
		contact=contactService.getContact();
		return SUCCESS;
	}
	
	public String updateContact(){		
		contactService.saveContact(contact);
		return SUCCESS;
	}
	public ContactService getContactService() {
		return contactService;
	}

	public void setContactService(ContactService contactService) {
		this.contactService = contactService;
	}

	public ContactTo getContact() {
		return contact;
	}

	public void setContact(ContactTo contact) {
		this.contact = contact;
	}
	public String getContactId() {
		return contactId;
	}
	public void setContactId(String contactId) {
		this.contactId = contactId;
	}
	
	

}
